package org.eclipselabs.egf.portfolio.task.scala.test.string

import org.eclipse.core.runtime.IProgressMonitor
import org.eclipse.egf.core.EGFCorePlugin
import org.eclipse.egf.core.producer.InvocationException
import org.eclipse.egf.ftask.producer.context.ITaskProductionContext
import org.eclipse.egf.ftask.producer.invocation.ITaskProduction

class StringShow extends ITaskProduction{
	
	def preExecute(taskProductionContext:ITaskProductionContext , monitor:IProgressMonitor ) ={
	}
	
	def doExecute(taskProductionContext:ITaskProductionContext , monitor:IProgressMonitor )={
		var first = taskProductionContext.getInputValue("firstStringShow", classOf[String])
		var second = taskProductionContext.getInputValue("secondStringShow", classOf[String])
		var append = taskProductionContext.getInputValue("appendStringShow", classOf[String])
		EGFCorePlugin.getDefault().logInfo("first String : " + first)
		EGFCorePlugin.getDefault().logInfo("second String : " + second)
		EGFCorePlugin.getDefault().logInfo("append String : " + append)
		
	}
	
	def postExecute(taskProductionContext:ITaskProductionContext , monitor:IProgressMonitor )={
	}
}